diff --git a/admin/index.php b/admin/index.php
index f5b4a6f85..1d5837edc 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -1,330 +1,330 @@
title = $title;
$this->icon = $icon;
$this->href = $href;
$this->data_toggle = $data_toggle;
$this->data_target = $data_target;
if (!empty($href)) {
$fileName = basename($_SERVER["SCRIPT_NAME"]);
if ($href === $fileName) {
$this->active = true;
}
}
}
function addItem(MenuAdmin $menu) {
$this->itens[] = $menu;
if ($menu->active) {
$this->show = true;
}
}
}
$itens = array();
$menu = new MenuAdmin(__("Dashboard"), "fa fa-tachometer-alt", "dashboard");
$itens[] = $menu;
$menu = new MenuAdmin(__("Settings"), "fa fa-wrench");
$menu->addItem(new MenuAdmin(__("Remove Branding"), "far fa-edit", "customize_settings"));
$menu->addItem(new MenuAdmin(__("General Settings"), "fas fa-cog", "general_settings"));
$menu->addItem(new MenuAdmin(__("Site Settings"), "fas fa-sitemap", "site_settings"));
$menu->addItem(new MenuAdmin(__("Social Login Settings"), "fas fa-sign-in-alt", "socialLogin_settings"));
$menu->addItem(new MenuAdmin(__("S3, B2, FTP settings"), "fas fa-hdd", "storage_settings"));
$menu->addItem(new MenuAdmin(__("Payments Settings"), "far fa-money-bill-alt", "payments_settings"));
$itens[] = $menu;
$menu = new MenuAdmin(__("Contents"), "fas fa-list-ul");
$menu->addItem(new MenuAdmin(__("Videos"), "fas fa-play-circle", "videos"));
$menu->addItem(new MenuAdmin(__("Live Stuff"), "fas fa-broadcast-tower", "live"));
$menu->addItem(new MenuAdmin(__("Users"), "glyphicon glyphicon-user", "users"));
$menu->addItem(new MenuAdmin(__("Users Groups"), "fa fa-users", "usersGroups"));
$menu->addItem(new MenuAdmin(__("Categories"), "glyphicon glyphicon-list", "categories"));
$menu->addItem(new MenuAdmin(__("Backup"), "fas fa-undo-alt", "backup"));
$itens[] = $menu;
$menu = new MenuAdmin(__("Design"), "fas fa-pen-fancy");
$menu->addItem(new MenuAdmin(__("First Page Style"), "fas fa-columns", "design_first_page"));
$menu->addItem(new MenuAdmin(__("Player Skin"), "fas fa-play-circle", "design_player"));
$menu->addItem(new MenuAdmin(__("Themes"), "fas fa-palette", "design_themes"));
$menu->addItem(new MenuAdmin(__("Colors"), "fas fa-palette", "design_colors"));
//$menu->addItem(new MenuAdmin(__("Custom CSS"), "fab fa-css3-alt", "design_css"));
$itens[] = $menu;
$menu = new MenuAdmin(__("Monetize"), "fas fa-dollar-sign");
$menu->addItem(new MenuAdmin(__("Site Advertisement with VAST Video ads"), "fas fa-money-check-alt", "monetize_vast"));
$menu->addItem(new MenuAdmin(__("Pay User per Video View"), "far fa-money-bill-alt", "monetize_user"));
$menu->addItem(new MenuAdmin(__("Create Subscription Plans"), "fas fa-money-bill-alt", "monetize_subscription"));
//$menu->addItem(new MenuAdmin(__("Banner Script code"), "fas fa-money-check-alt", "advertisement_script"));
$itens[] = $menu;
/*
$menu = new MenuAdmin(__("Update Version"), "glyphicon glyphicon-refresh", "{$global['webSiteRootURL']}update/");
$itens[] = $menu;
*/
$menu = new MenuAdmin(__("Miscellaneous"), "fas fa-th");
$menu->addItem(new MenuAdmin(__("Plugins"), "fas fa-puzzle-piece", "plugins"));
$menu->addItem(new MenuAdmin(__("Email All Users"), "fas fa-mail-bulk", "mail_all_users"));
$itens[] = $menu;
$_GET['page'] = xss_esc(@$_GET['page']);
$includeHead = "";
$includeBody = "";
switch ($_GET['page']) {
case "backup":
$includeBody = $global['systemRootPath'] . 'admin/backup.php';
break;
case "design_first_page":
$includeBody = $global['systemRootPath'] . 'admin/design_first_page.php';
break;
case "design_themes":
$includeBody = $global['systemRootPath'] . 'admin/design_themes.php';
break;
case "design_colors":
$includeBody = $global['systemRootPath'] . 'admin/design_colors.php';
break;
case "design_player":
$includeBody = $global['systemRootPath'] . 'admin/design_player.php';
break;
case "customize_settings":
$includeBody = $global['systemRootPath'] . 'admin/customize_settings.php';
break;
case "storage_settings":
$includeBody = $global['systemRootPath'] . 'admin/storage_settings.php';
break;
case "general_settings":
$includeBody = $global['systemRootPath'] . 'admin/general_settings.php';
break;
case "payments_settings":
$includeBody = $global['systemRootPath'] . 'admin/payments_settings.php';
break;
case "socialLogin_settings":
$includeBody = $global['systemRootPath'] . 'admin/socialLogin_settings.php';
break;
case "site_settings":
$includeHead = $global['systemRootPath'] . 'view/configurations_head.php';
$includeBody = $global['systemRootPath'] . 'view/configurations_body.php';
break;
case "monetize_subscription":
$includeHead = $global['systemRootPath'] . 'plugin/Subscription/page/editor_head.php';
$includeBody = array();
$includeBody[] = $global['systemRootPath'] . 'plugin/Subscription/page/editor_body.php';
$includeBody[] = $global['systemRootPath'] . 'admin/monetize_subscription.php';
break;
case "monetize_vast":
$includeHead = $global['systemRootPath'] . 'plugin/AD_Server/index_head.php';
$includeBody = $global['systemRootPath'] . 'plugin/AD_Server/index_body.php';
break;
case "monetize_user":
$includeBody = $global['systemRootPath'] . 'admin/monetize_user.php';
break;
case "plugins":
$includeHead = $global['systemRootPath'] . 'view/managerPlugins_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerPlugins_body.php';
break;
case "mail_all_users":
$includeBody = $global['systemRootPath'] . 'admin/mail_all_users.php';
break;
case "users":
$includeHead = $global['systemRootPath'] . 'view/managerUsers_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerUsers_body.php';
break;
case "live":
$includeBody = $global['systemRootPath'] . 'admin/live.php';
break;
case "usersGroups":
$includeHead = $global['systemRootPath'] . 'view/managerUsersGroups_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
break;
case "categories":
$includeHead = $global['systemRootPath'] . 'view/managerCategories_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerCategories_body.php';
break;
case "videos":
$includeHead = $global['systemRootPath'] . 'view/managerVideos_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerVideos_body.php';
break;
default :
$includeHead = $global['systemRootPath'] . 'view/charts_head.php';
$includeBody = $global['systemRootPath'] . 'view/charts_body.php';
break;
}
?>
- getWebSiteTitle(); ?>
+ :: getWebSiteTitle(); ?>
";
include $includeHead;
echo "";
}
?>
diff --git a/locale/index.php b/locale/index.php
index d6c24c3a2..3a0139f2c 100644
--- a/locale/index.php
+++ b/locale/index.php
@@ -1,206 +1,206 @@
$value) {
$vars[$matches[1][$key]] = $matches[1][$key];
}
}
}
}
closedir($handle);
}
}
listAll($global['systemRootPath']);
sort($vars);
?>
- getWebSiteTitle();?>
+ :: getWebSiteTitle();?>
chown www-data:www-data locale && sudo chmod -R 755 locale
diff --git a/objects/userRecoverPass.php b/objects/userRecoverPass.php
index 6ee53cf95..e8fe2a8e1 100644
--- a/objects/userRecoverPass.php
+++ b/objects/userRecoverPass.php
@@ -1,179 +1,179 @@
getEmail())) {
$recoverPass = md5(rand());
$recoverPass = $user->setRecoverPass($recoverPass);
if (!empty($_POST['captcha']) && $user->save()) {
require_once 'captcha.php';
$valid = Captcha::validation($_POST['captcha']);
if ($valid) {
require_once $global['systemRootPath'] . 'objects/PHPMailer/src/PHPMailer.php';
require_once $global['systemRootPath'] . 'objects/PHPMailer/src/SMTP.php';
require_once $global['systemRootPath'] . 'objects/PHPMailer/src/Exception.php';
//Create a new PHPMailer instance
$mail = new PHPMailer\PHPMailer\PHPMailer;
setSiteSendMessage($mail);
//Set who the message is to be sent from
$mail->setFrom($config->getContactEmail(), $config->getWebSiteTitle());
//Set who the message is to be sent to
$mail->addAddress($user->getEmail());
//Set the subject line
$mail->Subject = 'Recover Pass from ' . $config->getWebSiteTitle();
$msg = __("You asked for a recover link, click on the provided link") . " " . __("Reset password") . " ";
$mail->msgHTML($msg);
//send the message, check for errors
if (!$mail->send()) {
$obj->error = __("Message could not be sent") . " " . $mail->ErrorInfo;
} else {
$obj->success = __("Message sent");
}
} else {
$obj->error = __("Your code is not valid");
}
} else {
$obj->error = __("Recover password could not be saved!");
}
} else {
$obj->error = __("You do not have an e-mail");
}
die(json_encode($obj));
} else {
?>
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
getRecoverPass() != $_GET['recoverpass']) {
?>
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
getAbout();
}
if (empty($custom)) {
?>
getVersion()); ?>
: ()
diff --git a/view/channelProgram.php b/view/channelProgram.php
index 614046568..52d4aa422 100644
--- a/view/channelProgram.php
+++ b/view/channelProgram.php
@@ -1,604 +1,604 @@
getUsers_id();
}
$user_id = $_GET['user_id'];
$publicOnly = true;
$isMyChannel = false;
if (User::isLogged() && $user_id == User::getId()) {
$publicOnly = false;
$isMyChannel = true;
}
$programs = PlayList::getAllFromUser($user_id, $publicOnly, false, @$_GET['program_id']);
if (empty($programs)) {
$programs = PlayList::getAllFromUser($user_id, $publicOnly);
} else {
$videosArrayId = PlayList::getVideosIdFromPlaylist($_GET['program_id']);
$videos_id = $videosArrayId[0];
}
$playListsObj = AVideoPlugin::getObjectData("PlayLists");
?>
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
$program) {
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
$videosArrayId = PlayList::getVideosIdFromPlaylist($program['id']);
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
//getAllVideos($status = "viewable", $showOnlyLoggedUserVideos = false, $ignoreGroup = false, $videosArrayId = array(), $getStatistcs = false, $showUnlisted = false, $activeUsersOnly = true)
if (empty($videosArrayId) && ($program['status'] == "favorite" || $program['status'] == "watch_later")) {
unset($programs[$key]);
continue;
} else if (empty($videosArrayId)) {
$videosP = array();
} else if ($advancedCustom->AsyncJobs) {
$videosP = Video::getAllVideosAsync("viewable", false, true, $videosArrayId, false, true);
} else {
$videosP = Video::getAllVideos("viewable", false, true, $videosArrayId, false, true);
}//var_dump($videosArrayId, $videosP);exit;
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
//_error_log("channelPlaylist videosP: ".json_encode($videosP));
$videosP = PlayList::sortVideos($videosP, $videosArrayId);
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
//_error_log("channelPlaylist videosP2: ".json_encode($videosP));
//_error_log("channelPlaylist videosArrayId: ".json_encode($videosArrayId));
$playListButtons = AVideoPlugin::getPlayListButtons($program['id']);
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
?>
plugin/PlayLists/embed.php?playlists_id=" frameborder="0" allowfullscreen="allowfullscreen" allow="autoplay">'/>
thumbsGif;
$poster = $images->thumbsJpg;
$class = "";
$style = "";
if ($count > 6) {
$class = "showMoreLess{$program['id']}";
$style = "display: none;";
}
?>
label === __("Group")) {
?>
text; ?>
doNotDisplayViews)) {
?>
\ No newline at end of file
diff --git a/view/channels.php b/view/channels.php
index c8926d590..c60bef246 100644
--- a/view/channels.php
+++ b/view/channels.php
@@ -1,170 +1,170 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
$value['channelName']);
?>
diff --git a/view/charts.php b/view/charts.php
index 6beaff3da..3a0d5f57a 100644
--- a/view/charts.php
+++ b/view/charts.php
@@ -1,24 +1,24 @@
- Chart - getWebSiteTitle(); ?>
+ :: getWebSiteTitle(); ?>
diff --git a/view/configurations.php b/view/configurations.php
index a42c04917..ed7bd0447 100644
--- a/view/configurations.php
+++ b/view/configurations.php
@@ -1,35 +1,35 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/contact.php b/view/contact.php
index 60cc63f99..2b235e46b 100644
--- a/view/contact.php
+++ b/view/contact.php
@@ -1,161 +1,161 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/downloadExternalVideo.php b/view/downloadExternalVideo.php
index 34abe354a..9231fdaa7 100644
--- a/view/downloadExternalVideo.php
+++ b/view/downloadExternalVideo.php
@@ -1,182 +1,182 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
youtube-dl
Youtube-dl
sudo apt-get install python
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
diff --git a/view/forbiddenPage.php b/view/forbiddenPage.php
index 3a7ab8e7c..36cd996c7 100644
--- a/view/forbiddenPage.php
+++ b/view/forbiddenPage.php
@@ -1,27 +1,27 @@
- - getWebSiteTitle(); ?>
+ :: getWebSiteTitle(); ?>
diff --git a/view/help.php b/view/help.php
index 58f0ce24d..465caa851 100644
--- a/view/help.php
+++ b/view/help.php
@@ -1,114 +1,114 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/import.php b/view/import.php
index 8b37e7d84..1c9821e1d 100644
--- a/view/import.php
+++ b/view/import.php
@@ -1,162 +1,162 @@
doNotShowImportMP4Button)) {
return false;
}
?>
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/logs.php b/view/logs.php
index c8be3c1d0..9dece48fb 100644
--- a/view/logs.php
+++ b/view/logs.php
@@ -1,336 +1,336 @@
+
-
...
";
$collapsibleClose = "
";
$outputText = "";
$outputTextErrors = array();
$outputTextWarnings = array();
$linesAdded = 0;
$isCollapsed = true;
function e($text) {
if (empty($text)) {
return false;
}
global $printedarray, $global, $mysqlPass,
$outputText, $outputTextErrors, $outputTextWarnings,
$collapsibleOpen, $collapsibleClose, $linesAdded, $isCollapsed;
$uniqid = "";
$class = "";
$collapsible = true;
$uniqid = uniqid();
if (
preg_match("/(AVideoLog::SECURITY)/", $text, $matches) ||
preg_match("/(Prepare failed)/i", $text, $matches) ||
preg_match("/(AVideoLog::ERROR)/", $text, $matches) ||
preg_match("/(fatal)/i", $text, $matches)) {
$outputTextErrors[] = array($uniqid, $text, $matches[1]);
$class = "terminal-alert terminal-alert-error ";
$style = "background-color: #A00; color:#FFF;font-weight: bold;";
$collapsible = false;
} else
if (preg_match("/(PHP Warning)/i", $text, $matches)) {
$class = "terminal-alert terminal-alert-primary";
$outputTextWarnings[] = array($uniqid, $text, $matches[1]);
$collapsible = false;
} else if (preg_match("/PHP Notice/", $text)) {
$class = "logNotice";
} else if (preg_match("/(AVideoLog::WARNING)/", $text, $matches) || preg_match("/AVideoLog::DEBUG/", $text)) {
$class = "logDebug";
}
if ($collapsible) {
$log = preg_replace("/^[^\]]+/", "", $text);
if (!empty($log)) {
if (in_array($log, $printedarray)) {
$class = "logIgnore";
}
$printedarray[] = $log;
}
}
$removeLinesWithWords = array('password', 'recoverPass', 'pass');
foreach ($removeLinesWithWords as $value) {
if (preg_match("/{$value}/i", $text)) {
$text = preg_replace("/[^ ]/", "*", $text) . " - {$value}";
break;
}
}
$text = preg_replace("/[^ ]+@[^ ]+/i", "myemail@mydomain.com", $text);
$text = htmlentities($text);
if ($collapsible && !$isCollapsed) {
$outputText .= $collapsibleOpen;
$isCollapsed = true;
}
if (!$collapsible && $isCollapsed) {
if ($linesAdded === 0) {
$outputText = "";
} else {
$outputText .= $collapsibleClose;
}
$isCollapsed = false;
}
if (!$collapsible && !$isCollapsed) {
}
$linesAdded++;
$outputText .= ""
. "#{$linesAdded} {$text}"
. "
" . PHP_EOL;
return true;
}
if (empty($global['logfile'])) {
die("Log variable does not exists");
}
if (!file_exists($global['logfile'])) {
die("you may have problems on the write permission for the log file");
}
$lines = tail($global['logfile'], 5000, true, true);
$lines = array_reverse($lines);
foreach ($lines as $key => $line) {
if (empty($line[0])) {
unset($line[$key]);
} else {
break;
}
}
$outputText .= $collapsibleOpen;
foreach ($lines as $line) {
e($line[0]);
}
$outputText .= $collapsibleClose;
?>
- Logs
+ :: getWebSiteTitle(); ?>
If you have a problem with your installation, feel free to share this log information on GitHub,
on this log we hide all the sensitive information from your log. but it still very helpfull to find issues.
#{$count} - {$value[2]}"; ?>
#{$count} - {$value[2]}";
}
?>
Expand All
Collapse All
\ No newline at end of file
diff --git a/view/managerCategories.php b/view/managerCategories.php
index ce59601bb..37f1bc266 100644
--- a/view/managerCategories.php
+++ b/view/managerCategories.php
@@ -1,30 +1,30 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/managerComments.php b/view/managerComments.php
index 5d158f669..ac2511d25 100644
--- a/view/managerComments.php
+++ b/view/managerComments.php
@@ -1,41 +1,41 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/managerPlugins.php b/view/managerPlugins.php
index 2692d8c6a..a62585a40 100644
--- a/view/managerPlugins.php
+++ b/view/managerPlugins.php
@@ -1,28 +1,28 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/managerSubscribes.php b/view/managerSubscribes.php
index af7fda968..fb9972065 100644
--- a/view/managerSubscribes.php
+++ b/view/managerSubscribes.php
@@ -1,141 +1,141 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
..." style="width: 100%;">
diff --git a/view/managerUsers.php b/view/managerUsers.php
index 87a628426..f72861ce8 100644
--- a/view/managerUsers.php
+++ b/view/managerUsers.php
@@ -1,34 +1,34 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/managerUsersGroups.php b/view/managerUsersGroups.php
index b0e6f80ca..3ec5d4df9 100644
--- a/view/managerUsersGroups.php
+++ b/view/managerUsersGroups.php
@@ -1,35 +1,35 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/managerVideos.php b/view/managerVideos.php
index c5c4d29b2..343b87af8 100644
--- a/view/managerVideos.php
+++ b/view/managerVideos.php
@@ -1,43 +1,43 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
diff --git a/view/mini-upload-form/index.php b/view/mini-upload-form/index.php
index b6f505bbf..d5c1e6b27 100644
--- a/view/mini-upload-form/index.php
+++ b/view/mini-upload-form/index.php
@@ -1,101 +1,101 @@
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
" enctype="multipart/form-data">
encoder or use the public one"); ?>
diff --git a/view/signUp.php b/view/signUp.php
index 61a3b29c9..f924d9248 100644
--- a/view/signUp.php
+++ b/view/signUp.php
@@ -1,208 +1,208 @@
disableNativeSignUp)) {
die(__("Sign Up Disabled"));
}
$agreement = AVideoPlugin::loadPluginIfEnabled("SignUpAgreement");
$signInLink = "{$global['webSiteRootURL']}user?redirectUri=".urlencode(isset($_GET['redirectUri']) ? $_GET['redirectUri'] : "");
if(!empty($_GET['siteRedirectUri'])){
$signInLink = $_GET['siteRedirectUri'];
}
?>
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
forceLoginToBeTheEmail)) {
?>
getSignupCheckBox();
}
?>
diff --git a/view/trending.php b/view/trending.php
index eaa86326d..94c16d507 100644
--- a/view/trending.php
+++ b/view/trending.php
@@ -1,239 +1,239 @@
- getWebSiteTitle(); ?>
+ :: getWebSiteTitle(); ?>
diff --git a/view/update.php b/view/update.php
index d63f48489..8e110aa1c 100644
--- a/view/update.php
+++ b/view/update.php
@@ -1,200 +1,200 @@
- getWebSiteTitle(); ?>
+ :: getWebSiteTitle(); ?>
getVersion()); ?>
Version {$value['version']}";
$disabled = "disabled";
}
?>
" . count($updateFiles) . ""); ?>
Our repository is now running at version version; ?>.
You can follow this
Update Tutorial
to update your files and get the latest version.
error = "";
foreach ($lines as $line) {
if (substr($line, 0, 2) == '--' || $line == '')
continue;
$templine .= $line;
if (substr(trim($line), -1, 1) == ';') {
if (!$global['mysqli']->query($templine)) {
$obj->error = ('Error performing query \'
' . $templine . '\': ' . $global['mysqli']->error . ' ');
echo json_encode($obj);
//exit;
}
$templine = '';
}
}
// insert configuration if is version 1.0
if ($config->currentVersionLowerThen('1.0')) {
$sql = "DELETE FROM configurations WHERE id = 1 ";
if ($global['mysqli']->query($sql) !== TRUE) {
$obj->error = "Error deleting configuration: " . $global['mysqli']->error;
echo json_encode($obj);
exit;
}
$sql = "INSERT INTO configurations (id, video_resolution, users_id, version, created, modified) VALUES (1, '426:240', " . User::getId() . ",'1.0', now(), now())";
if ($global['mysqli']->query($sql) !== TRUE) {
$obj->error = "Error creating configuration: " . $global['mysqli']->error;
echo json_encode($obj);
exit;
}
}
if ($config->currentVersionEqual('1.0')) {
$sql = "UPDATE configurations SET users_id = " . User::getId() . ", version = '1.1', webSiteTitle = '{$global['webSiteTitle']}', language = '{$global['language']}', contactEmail = '{$global['contactEmail']}', modified = now() WHERE id = 1";
if ($global['mysqli']->query($sql) !== TRUE) {
$obj->error = "Error creating configuration: " . $global['mysqli']->error;
echo json_encode($obj);
exit;
}
}
//$renamed = rename("{$global['systemRootPath']}updateDb.sql", "{$global['systemRootPath']}updateDb.sql.old");
?>
diff --git a/view/user.php b/view/user.php
index 3b80bc9e0..94a6a75f1 100644
--- a/view/user.php
+++ b/view/user.php
@@ -1,105 +1,105 @@
type} fix-width\">{$value->text}";
}
//$json_file = url_get_contents("{$global['webSiteRootURL']}plugin/CustomizeAdvanced/advancedCustom.json.php");
// convert the string to a json object
//$advancedCustom = json_decode($json_file);
?>
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
loadSelfUser();
?>
disablePersonalInfo)) { ?>
getId()); ?>
disablePersonalInfo)) { ?>
getId()); ?>
diff --git a/view/videoEmbeded.php b/view/videoEmbeded.php
index b8cc68e5b..93170c2d9 100644
--- a/view/videoEmbeded.php
+++ b/view/videoEmbeded.php
@@ -1,567 +1,567 @@
thumbnails;
$poster = $evideo->thumbnails;
$imgw = 1280;
$imgh = 720;
$autoPlaySources = array();
$autoPlayURL = '';
$autoPlayPoster = '';
$autoPlayThumbsSprit = '';
} else if (!empty($_GET['v'])) {
$video = Video::getVideo($_GET['v'], "", true, false, false, true);
//$video['id'] = $_GET['v'];
} else if (!empty($_GET['videoName'])) {
$video = Video::getVideoFromCleanTitle($_GET['videoName']);
}
Video::unsetAddView($video['id']);
AVideoPlugin::getEmbed($video['id']);
if (empty($video)) {
forbiddenPage("Video not found");
}
if (empty($customizedAdvanced)) {
$customizedAdvanced = AVideoPlugin::getObjectDataIfEnabled('CustomizeAdvanced');
}
if (!isSameDomain(@$_SERVER['HTTP_REFERER'], $global['webSiteRootURL']) && !isAVideoMobileApp()) {
if (!empty($advancedCustomUser->blockEmbedFromSharedVideos) && !CustomizeUser::canShareVideosFromVideo($video['id'])) {
if(!empty($advancedCustomUser->blockEmbedFromSharedVideos)){
error_log("Embed is forbidden: \$advancedCustomUser->blockEmbedFromSharedVideos");
}
if(!CustomizeUser::canShareVideosFromVideo($video['id'])){
error_log("Embed is forbidden: !CustomizeUser::canShareVideosFromVideo(\$video['id'])");
}
forbiddenPage("Embed is forbidden");
}
}
$imgw = 1280;
$imgh = 720;
if ($video['type'] !== "pdf") {
$source = Video::getSourceFile($video['filename']);
$img = $source['url'];
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
} else if (($video['type'] !== "audio") && ($video['type'] !== "linkAudio")) {
$source = Video::getSourceFile($video['filename']);
$img = $source['url'];
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
} else {
$img = "{$global['webSiteRootURL']}view/img/audio_wave.jpg";
}
$images = Video::getImageFromFilename($video['filename']);
$poster = $images->poster;
if (!empty($images->posterPortrait)) {
$img = $images->posterPortrait;
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
}
require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php';
/*
* Swap aspect ratio for rotated (vvs) videos
if ($video['rotation'] === "90" || $video['rotation'] === "270") {
$embedResponsiveClass = "embed-responsive-9by16";
$vjsClass = "vjs-9-16";
} else {
$embedResponsiveClass = "embed-responsive-16by9";
$vjsClass = "vjs-16-9";
} */
$vjsClass = "";
$obj = new Video("", "", $video['id']);
$resp = $obj->addView();
if (($video['type'] !== "audio") && ($video['type'] !== "linkAudio")) {
$poster = "{$global['webSiteRootURL']}videos/{$video['filename']}.jpg";
} else {
$poster = "{$global['webSiteRootURL']}view/img/audio_wave.jpg";
}
//https://.../vEmbed/527?modestbranding=1&showinfo=0&autoplay=1&controls=0&loop=1&mute=1&t=0
$modestbranding = false;
$autoplay = false;
$controls = "controls";
$loop = "";
$mute = "";
$objectFit = "";
$t = 0;
if (isset($_GET['modestbranding']) && $_GET['modestbranding'] == "1") {
$modestbranding = true;
}
if (!empty($_GET['autoplay']) || $config->getAutoplay()) {
$autoplay = true;
}
if (isset($_GET['controls']) && $_GET['controls'] == "0") {
$controls = "";
}
if (!empty($_GET['loop'])) {
$loop = "loop";
}
if (!empty($_GET['mute'])) {
$mute = 'muted="muted"';
}
if (!empty($_GET['objectFit'])) {
$objectFit = 'object-fit: ' . $_GET['objectFit'];
}
if (!empty($_GET['t'])) {
$t = intval($_GET['t']);
} else if (!empty($video['progress']['lastVideoTime'])) {
$t = intval($video['progress']['lastVideoTime']);
} else if (!empty($video['externalOptions']->videoStartSeconds)) {
$t = parseDurationToSeconds($video['externalOptions']->videoStartSeconds);
}
$playerSkinsO = AVideoPlugin::getObjectData("PlayerSkins");
$disableEmbedTopInfo = $playerSkinsO->disableEmbedTopInfo;
$url = Video::getLink($video['id'], $video['clean_title'], false);
$title = str_replace('"', '', $video['title']) . ' - ' . $config->getWebSiteTitle();
$photo = User::getPhoto($video['users_id']);
if (empty($currentTime)) {
$currentTime = 0;
}
if (User::hasBlockedUser($video['users_id'])) {
$disableEmbedTopInfo = true;
$video['type'] = "blockedUser";
}
?>
- getWebSiteTitle(); ?> ::
+ :: getWebSiteTitle(); ?>
You've blocked user ()
You won't see any comments or videos from this user
" class="img img-responsive" style="height: 100%;" >
open($sources['zip']["path"]);
for ($i = 0; $i < $za->numFiles; $i++) {
$stat = $za->statIndex($i);
$fname = basename($stat['name']);
?>
class="center-block video-js vjs-default-skin vjs-big-play-centered" id="mainVideo" data-setup='{ "fluid": true }'
poster="view/img/recorder.gif">
horse
horse
class="video-js vjs-default-skin vjs-big-play-centered " id="mainVideo">
" >
";
echo getVTTTracks($video['filename']);
}
?>
class="video-js vjs-default-skin vjs-big-play-centered " id="mainVideo">